// ------------------------------------------------------ Naming ------------------------------------------------------
Name Avro Canada CF-100 Canuck
ShortName Canuck
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconcanuck
Model baf.canuck
Texture canuck
//Third Person Camera Distance
CameraDistance 15.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0.0
HasGear True
ModelScale 1
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 0.75
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.5
TurnRightSpeed 1.5
//Pitch modifiers
LookUpSpeed 2.2
LookDownSpeed 2.2
//Roll modifiers
RollLeftSpeed 3.0
RollRightSpeed 3.0
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.37
//Lift (A lift : mass ratio of 1 : 1 should keep the plane perfectly level at full throttle
Lift 3.2
//Mass (In tons)
Mass 2.7
//Moment of Inertia (in crazy units. Just fiddle with this until you find something nice)
MomentOfInertia 10.0
//More bounciness means the vehicle will bounce more upon going up slopes, but fall through the ground less
Bounciness 1.0
//Wheels
NumWheels 3
WheelPosition 0 16 -10 -40
WheelPosition 1 16 -10 40
WheelPosition 2 137 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 -93 -36 -35 leftWing metalPropeller
Propeller 1 -93 -36 36 rightWing metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Missile
Secondary None
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 5
ShootDelaySecondary 0
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary True
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 79 31 -203 leftWing
ShootPointPrimary 79 35 -203 leftWing
ShootPointPrimary 79 28 -203 leftWing
ShootPointPrimary 79 31 -207 leftWing
ShootPointPrimary 79 31 -200 leftWing
ShootPointPrimary 79 31 203 rightWing
ShootPointPrimary 79 35 203 rightWing
ShootPointPrimary 79 28 203 rightWing
ShootPointPrimary 79 31 200 rightWing
ShootPointPrimary 79 31 200 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 10
AllowAllAmmo True
AddAmmo mk4Rocket
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
//Driver and Passengers
Pilot 106 35 0
Passengers 1
Passenger 1 80 35 0 core
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 20
PropSound PlaneB
PropSoundLength 30
ShootSoundPrimary RocketFire2
ShootSoundSecondary RocketFire2
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 advancedMetalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 140 25 -15 44 24 30
SetupPart core 100 69 19 -20 71 36 40
SetupPart core 100 -39 19 -20 107 36 40
SetupPart tail 100 -183 24 -20 143 31 40
SetupPart tail 100 -184 56 -2 62 31 5
SetupPart leftWing 100 -184 62 -82 62 4 164
SetupPart leftWing 100 -74 22 -52 172 30 32
SetupPart rightWing 100 -75 21 20 172 30 32
SetupPart leftWing 100 -27 24 -195 82 11 150
SetupPart rightWing 100 -27 24 52 82 11 149
SetupPart leftWing 100 -66 21 -215 145 22 22
SetupPart rightWing 100 -66 21 192 145 22 22
BulletDetection 20
//Collision points for breaking wings etc. upon crashing
CollisionPoint 180 36 0 nose
CollisionPoint 153 36 0 nose
CollisionPoint 116 36 0 core
CollisionPoint 90 36 0 core
CollisionPoint 18 36 0 core
CollisionPoint -63 36 0 tail
CollisionPoint -153 36 0 tail
CollisionPoint -153 64 -44 tail
CollisionPoint -153 63 45 tail
CollisionPoint 18 31 -125 leftWing
CollisionPoint 18 31 -203 leftWing
CollisionPoint 18 31 125 rightWing
CollisionPoint 18 31 203 rightWing

HasGear True
IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 30

AddEmitter flansmod.fmflame 1 [-66,32,35] [3,3,3] [0,0,0] 0.7 2 0 1 core
AddEmitter flansmod.fmsmoke 1 [-66,32,35] [1,1,1] [-1,0,0] 0.25 0.5 0 1 core
AddEmitter flansmod.fmflame 1 [-66,32,-35] [3,3,3] [0,0,0] 0.7 2 0 1 core
AddEmitter flansmod.fmsmoke 1 [-66,32,-35] [1,1,1] [-1,0,0] 0.25 0.5 0 1 core